﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace VSSDKAssist.Platform.OptionPages
{
	[ComVisible(true)]
	[ClassInterface(ClassInterfaceType.AutoDual)]
	[Guid("769CCFF1-77FB-4764-B1F3-D4D8DDB2824F")]
	public class GeneralOptionPage : DialogPage
	{
		private bool enableVSIPLogging;

		public bool EnableVSIPLogging
		{
			get { return enableVSIPLogging; }
			set { enableVSIPLogging = value; }
		}

		[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		protected override IWin32Window Window
		{
			get
			{
				GeneralOptionPageControl control = new GeneralOptionPageControl();
				control.Location = new Point(0, 0);
				control.OptionPage = this;
				return control;
			}
		}

		//TIP 1: If you want to get access this option page from a Vs Package use this snippet on the VsPackage class:
		//GeneralOptionPage optionPage = this.GetDialogPage(typeof(GeneralOptionPage)) as GeneralOptionPage;


		//TIP 2: If you want to get access this option page from Vs Automation copy this snippet:
		//DTE dte = GetService(typeof(DTE)) as DTE;
		//EnvDTE.Properties props = dte.get_Properties("VSSDKAssist", "General");		
	}
}

